public class Demo {

    public static void main(String[] args) {
        String mobile = "13480743727";
        String mobileEnd = mobile.substring(mobile.length() - 4);
        System.out.println(mobileEnd);
    }
}
